package com.hysf.cglibproxy;

import org.springframework.cglib.proxy.Enhancer;

public class TestProxy {
	public static void main(String[] args) {
		OrderBiz orderBiz =new OrderBizImpl();
		MyMethodInterceptor interceptor = new MyMethodInterceptor(orderBiz);
		OrderBiz proxy = (OrderBiz) interceptor.getProxy();
		proxy.addOrder();
	}
}
